package com.qdsg.modulesihealsdk.entity;

import com.ghalife.gha_ble.Bean.W_GluResult;
import com.qdsg.modulesihealsdk.utils.StrUtils;

/**
 * @Description
 * @Author WuJianFeng
 * @Date 2023/1/31 17:41
 */
public class GluResultEntity extends BaseMeasureEntity {
    private W_GluResult w_gluResult;

    public GluResultEntity(W_GluResult w_gluResult){
        this.w_gluResult = w_gluResult;
    }

    public W_GluResult getW_gluResult() {
        return w_gluResult;
    }

    public void setW_gluResult(W_GluResult w_gluResult) {
        this.w_gluResult = w_gluResult;
    }

    @Override
    public String getDetectResult() {
        if (w_gluResult == null){
            return "";
        }
        return StrUtils.checkResultEmpty(w_gluResult.getGlucose());
    }
}
